package com.itheima.ZuoYe05;

public class Demo {
    public static void main(String[] args) {
        Phone p = new Phone("小米","黑色",3999.9);
        printPhone(p);
    }

    private static void printPhone(Phone p) {
        System.out.println("品牌："+p.brand);
        System.out.println("颜色："+p.color);
        System.out.println("价格："+p.price);
        p.call();
    }

}
